<template>
  <div id="nav">
    <el-config-provider :locale="locale"></el-config-provider>
    <router-view />
  </div>
</template>
<script>
import * as echarts from "echarts";
import { Golbal } from "@/assets/js/pubilcs.js";
import { defineComponent, onMounted, provide } from "vue";
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
export default defineComponent({
  name: "App",
  components: {
    ElConfigProvider,
  },
  setup() {
    provide("echarts", echarts);
    function Enforcement() {
      document.onkeydown = function (event) {
        let e = event || window.event || arguments.callee.caller.arguments[0];
        if (e && e.keyCode == 38) {
          let ProductActivationListArr = JSON.parse(sessionStorage.getItem("ProductActivationListArr"))
          // console.log(sessionStorage.getItem("ProductActivationListArr"))
          for(let i=0;i<ProductActivationListArr.length;i++){
            ProductActivationListArr[i].Status=1
          }
          sessionStorage.setItem("ProductActivationListArr",JSON.stringify(ProductActivationListArr))

        }
      };
    }
    onMounted(async() => {
      // Enforcement()
    });
    return {
      locale: zhCn,
    };
  },
});
</script>
<style lang="less">
html,
body,
#app {
  height: 100%;
  overflow: hidden;
  background: transparent !important;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
#nav {
  height: 100%;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

.el-table__body-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  overflow-x: hidden;
  overflow-y: hidden;
  background-color: #f5f5f5;
}

.el-table__body-wrapper::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6);
  background-color: #f2f3f5;
}
</style>
